<template>
  <div id="app">
    <header>美发管理的头</header>
    <div class="content">
      <el-row>
        <el-col :span="3">
          <div class="grid-content bg-purple">
            <CeNav />
          </div>
        </el-col>
        <el-col :span="21">
          <div class="grid-content bg-purple-light">
            <!-- 内容显示 -->
            <router-view />
          </div>
        </el-col>
      </el-row>
    </div>

    <footer>底部</footer>
  </div>
</template>
<script>
import CeNav from "./components/CeNav";
export default {
  components: {
    CeNav
  }
};
</script>
<style lang="less">
#app {
  margin: 15px;
  position: relative;
  header {
    height: 50px;
    background-color: #99a9bf;
  }
  footer {
    height: 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #99a9bf;
  }
  .content {
    height: 700px;
  }
}
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
